package com.crm.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the PLANING_BACK database table.
 */
@Entity
@Table(name = "PLANING_BACK")
@NamedQuery(name = "PlaningBack.findAll", query = "SELECT p FROM PlaningBack p")
public class PlaningBack implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(initialValue = 1, allocationSize = 1, name = "PLANING_BACK_PLANINGBACKID_GENERATOR", sequenceName = "SEQ3")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "PLANING_BACK_PLANINGBACKID_GENERATOR")
    @Column(name = "PLANING_BACK_ID")
    private Long planingBackId;

    @Column(name = "FK_PLANING_BACK_ORDER_ID")
    private BigDecimal fkPlaningBackOrderId;

    @Column(name = "PLANING_BACK_IS_BACK")
    private String planingBackIsBack;

    @Column(name = "PLANING_BACK_IS_DEL")
    private String planingBackIsDel;

    @Column(name = "PLANING_BACK_MONEY")
    private BigDecimal planingBackMoney;
    @JSONField(format = "yyyy-MM-dd")
    @Temporal(TemporalType.DATE)
    @Column(name = "PLANING_BACK_TIME")
    private Date planingBackTime;

    public PlaningBack() {
    }

    public Long getPlaningBackId() {
        return this.planingBackId;
    }

    public void setPlaningBackId(Long planingBackId) {
        this.planingBackId = planingBackId;
    }

    public BigDecimal getFkPlaningBackOrderId() {
        return this.fkPlaningBackOrderId;
    }

    public void setFkPlaningBackOrderId(BigDecimal fkPlaningBackOrderId) {
        this.fkPlaningBackOrderId = fkPlaningBackOrderId;
    }

    public String getPlaningBackIsBack() {
        return this.planingBackIsBack;
    }

    public void setPlaningBackIsBack(String planingBackIsBack) {
        this.planingBackIsBack = planingBackIsBack;
    }

    public String getPlaningBackIsDel() {
        return this.planingBackIsDel;
    }

    public void setPlaningBackIsDel(String planingBackIsDel) {
        this.planingBackIsDel = planingBackIsDel;
    }

    public BigDecimal getPlaningBackMoney() {
        return this.planingBackMoney;
    }

    public void setPlaningBackMoney(BigDecimal planingBackMoney) {
        this.planingBackMoney = planingBackMoney;
    }

    public Date getPlaningBackTime() {
        return this.planingBackTime;
    }

    public void setPlaningBackTime(Date planingBackTime) {
        this.planingBackTime = planingBackTime;
    }

}